setting metadata in receive