updated, almost minimum