add logistic cost layer | add forward layer