added functionality for group