fixed timeused bugs