fix function prototype