move max/min arguments to draw