added threshold to test