bcp and bmv functions added