solving injection problem