fixes for the number of elements