added commit: trap.c trap.h, removed undifinition function