added further methods in datainterface and data class