determine if we are done