added vertical point calculation