comments for losses.h