added layer to conditions