corrected compatibility errors