add the element in when it equals with the current min value