reduce duplication of this sort of line