pulling out screen pointer calculation routine