added proc6.sql