comparisons with external object corrected.