changed arctan type