fix function proto