coding errors fixed