added getById method