moved the ` character replacement (it didn't compile where it was)