added camera threshould in vertical direction