trying to implement a smart bulk edit