added convertion from screen to 3D coordinates