fix poll numbering
use scalar()