completed intersection code