add frame dimension equality check.