added transform function for filters