fix no previous prototype warning