change method type