change response from class to interface