it actually works for multiple files