fix register method and poup method