new glhck, fix memory issue