changed timegraph value from int to float