added threshold on electrons for digi