helper to get all variables