added filter argument