timer code is now in place