delete createMethod
fix compile error
add tests