finish the var parsing