made layer "smart"