refactored away obsolete peek-behind function