localization

change array to function