added pipes and timer