yield correct array