removes unnecessary instance of dependecy injection