make sure currentSet is not null when working with it