added alternative implementation for store with less stm contention