counter and completedtasks now work