added work with several var sets