refactor and put some print page start