added lc-functions back