script for group data