added whileloop tacify