rewrote delete code for stars