new script to handle groups and only observed data