added maximum Y Cap