cleanup, add input to filter