corrected the mkBoundVar function call