remove unused trap variable