fixed lookAt function