fixing $ escaping issue