added smart layer