threshold calculation tested