fixing the references