fixed bad function reference