added functionality of L2 introduced in the python example
backup before changing name of layer...