renamed homdeg to the more-standard 'degree' and made it a property