global variable timer added