minor cleanup and corner cases illustrated...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>