counter and some changes with design