Trying to highlight an object based on mouse position and cant fix an offset

just to double check- if the ray isnt working correctly is there anything im supposed to be changing? its a little late im having truble understanding mb