alternative fix for logical maximum