updated to include random fill matrix null