Invalid variable name $smaInfo should be $mem