merged with loss_estimation
Removed all hard coded functions and create mapping table