replaced @vm completely with all_vars