new style when sql is applied done