refactor common used data to sington