added frame deleting