add opening code