back connect to use 'while' instead of 'for'