[feat] added calculation of arrow position