fixed CS and unused provider