fixed null threshold problem