min and max for sign