adding addresses functioning