added CAPTURE_LENGTH and removed all tabs