trying to fix raycasting