delete bug with sinus and cosinus