add; test for reference before assignment