changed first to counter