fix type definition