cleaning up & added cog4 groupvar