fixed indentation error and a minor syntax error