adding some helpful methods on the model