exporting loss_functions as its own module