move gem pg to first line