change hack in paint() to divide p->M by 5, not fix at 20