improve how build statusline, using a faster way