add dsl for max, min