improving set_minus method logic