added last layer