fixed minor bug that printed array even if timer expired