time counting modification added