moved asisgnement statement