return m instead of null in generatecallbackmethod