improved processing logic, ignore columns that contain a 0