fixed degenerate case return