codes updated

syntax errors fixed