double the number of loops