hooking up to onAdd