added method localizeLocks