- improve byId method (create more generic solution)