changed to sigmoid activation function