take excluded files into account