fixed error in types