use while true instead of empty fors