minor modification for adding group leave