layer function resolved