removing unwanted code n setting width-40 to bar