made shobits procedure into one