simplify my codings according to craftpaperbag