fixed conflicting types in func definition