fixes some mistakes