added assert in fullConnectLayers
cleanups