handle empty chain