added bug fix for bad line in file