adding error cases for addresses