working on reducing delta table