spits error for empty files