create new function to getPolicyPayLoad