removed duplicate step
wrapped unpack in a try
not and not