added ICM to fit routine