wrote more code regarding time stuff