added parse variable method