errors fixed, indentation