add logic to citations