added varparsing