implement get by id