changed stages to groups, only using one stage now