add packedmethod for function pointer