removed bidmach functions