modify minimum functions