fixed some time stuff