refactor syntax to correct grammer and converted indentation to spaces