added timer snippet