added time where its needed