fixed errors in types