fixed file not foun problem and line number calc

fixed file not foun problem and line number calculations