i had changed to | prev + character |