fixed Type Error error