variables defined and cnt based scheduler created