added add function, WIP!!!