change the get func to get payload