improve trap action