added Philipp's patch to incorporate beam jets