changed to enumarate insead of manual addition of counter