check arguments of method replacement function and combine repeating code
check arguments of method replacement function and combine repeating code

JackieXie168/skim,JackieXie168/skim,JackieXie168/skim,JackieXie168/skim,JackieXie168/skim