getheading is implemented and debugged