before write code for next method