completed adoption functionality.