trimming objects