remove spinlock