[UPDATE] add min and max operators