added missing stringify function