fixed Initilsation -- error caused by the postion of my counter