corrected getById