localize functions