sidebars calculation working #289