finish Dollar equals function