returning non pointer in group