added normalizeFilter