remove threshold stuff