also,  data["secret"] should be written as data.secret