fix function pointer