make the activation function layer dependent