fixed calculation of running (subsctracted failed)