working for all files