added a weird stringify function