periodic Timer now working properly