A note on generalized triangle group