sets up roll function
sets up to log roll function