added a mask to fix a bug in the dropset calculation