update localize method