a simple tool for sgs