fixed while condition