trim fix, min/max