fix type signature