changes in proc2.sql