added functionality to get doit by id