what was the problem with doAfter?