style improvements and restores maximums