changed to setExtreme