use method in model