added counter and cast to string