correctly escape basis