remove reference to deprecated variable no_elements