modified pass to ignore non-kernel functions