added simplex to all fitting subroutines