fix polynomial printing