adding group functionality