adds $default compare method