introduced data parameter for timer action function