creating bar