rendergaps(boolean) function added