functionc.sql added