switch statement, doc update