add the inject function and also change the innerBean as the inject bean