added controls for the threshold rendering