parameter tweaking for nice and fast detection