remove the locks one by one later