correcting function lookup