change method generate