handle size error, consistent variable names
Merge pull request #791 from jrenner/select

handle size error, consistent variable names