removing trap dependency