added code to prevent negative numbers for minimum insert size