in alpha calc, changed to arctan2