fixed a few coding errors'