changed loading bar to start at 0