fixed span issue, expanded on code sample explination