deleted atc file and refactored code