minor syntax errors corrected