the solution for SGU problem