refactor with or bars