A new inference approach for generalized linear model