in reply to while (scalar()

forget that code
do not learn from things that do not work and do not make any sense...
sorry