change class to interface on result