safer citation generation