added trim to refractor