waypoints functionality created, ready to accept array of array from database