change locking order