percentDone part of functions