Assingment instead of loop