traps implemented