small refactor in coerce.c