first version of composition filter.