You are building  an array of guests here. You should build a hash of guest and associate each guest with its uid