trim repeated code

Created by  Bowei Liu  on December 28, 2020
IDO3NT4JZPTTDX3ADJ3IWJFFDFJX3MGGKZD6CL6CJNB5JHMXHPHQC
Change contents