added dollar sign check