fix subfunction naming error