added var statement assignment function for destructured assign support