change method in model