for test loop