maybe you have to declare a function prototype anywhere.