extend m from 1 to 5