fixed a return type error. updated header file