change angle calculation