fix condition
fix type
fix signature
fix initializer struct