work in progress on fixing race conditions when array grows