cut out the correct portion to get mode