removing unused file and adding error log