added min max gpu and cpu