adding sync locks