save layer only once