adjusting canvas section
removed unused code which was commented