handle init with empty data