change bcase dynamically