finalized mystery, added add function