print and delete handler for funciton pointers