adding in pieces for graphs