formatting, refactored getTodoById