fix repeated ans referencing