adding threshold checking