adding hole computation