more logic into the todo list