Correct Type assignment and fix argument arity error