fix type for inputs