changed time_ from float to int.