updated to reflect new definition of MLP()