add a var for elapsed min to print the time correctly