added a truncate filter