first loop test; not good; need to work out rt thread