first function arrangement and fix at README