updated arrow angle calculation