added GA, fixed counter