getByID functionality