updating common min