removed alert in timer function