add api to query min and max