pseudo coded the add and delete functions
add with no parent, need to refactor code