some optimization work was done