minor updates to mpoly function