y should be MAX