compactify in case of failure