a bit ugly deletion