modified to ignore unnecessary files