refactored bacon for possibly better readability, mayyyybe