change threshold to 0.5