added filter to control output