switching to do while stmts