use nested assignments