removing unused code in gl.pl