pruning included in mlp function