fix so it works when processing all clusters