removed spinlock since unused