remove unused dangerous code