removed test loop