coordinate counter and stuff