modularized the probe rep code
modularized the background box code better