added while statement