code at stopping point for night