added the add function