add number of objectives as attribute