fixed 5 prime trimming bug