extract variables