got rid of useless constructor function for data class