added maximum Y support