updated the code after parse from payload saga