fixed some type definition errors