implimented monotic losses. decoupled time and loss generation