loop 2 in exercise - check if scalar