added ability to change useless gap size on the fly