working for multiple files and lines