made 'id' and optional argument for 'loss_df'
deleted function
moved to own package