[#17] add setup method and reduce some lines