added min and triangle file