implemented timer feature