added custom log_file naming
refactored probability