added some model methods