used string argument to get bean