added counter for testing