fix printAllSubFiles method