adding trap