to prevent an empty gap from being created