use cmpf if it exists