code from pull request groupdot added