displays time left instead of total time + refactoring