remove copypasta
better detection