fixed some old errors