change class to interface in provider