update _layers