removed bug where values for traps and keys werent being added