refactor pullupdate codes
refactor pull update