(dev) added group(closure)
(dev) added max function