tweaking logic for creating todo list
fixing typo in last commit