add group functionality