stupid misdefined function