fixing bugs with sparse data, removing some parameters from the optimization which do not seem useful to optimize