adds trim functionality on some master models