option of choosing loss and tidy up