search by id when creating instance