works for one file