add non-working intersection code