updated sgs, disabled debug printing in sample