implemented helpers method in model
implemented helpers method in model