correct apollo code