added else statement to doc section