determine drawing function in .add() and .set()