working on getting function pointer