scoping and comment
dropped keyerror