nested[1] might not exist; change to nested[0]