prototype of one function was not declared