made \ref and \label work