added gap ratio calculation