bugfix, forgot to update the initial function to parse and replace