fixed syntax error
fixed run-time error
fixed several run time errors