more robust formatting
room fixes
weighted random value