if this line will be achieved first - program will store empty files