adding type to payload