start adding threshold feature