moved fun -> traps.c