update to local inhibition algorithm