rename to getNextTask