added code for 16 and 32 versions of CBA