fix function declaration isn't a prototype