fixes to the max