fixed some bugs, making code work with RA and DEC instead of px