correcting syntax errors and adjusting settings