updated getRoutinesByUser method