added while test