adding first group to output