easy swap feature algorithm