neatening up pipeline constructor