backward search for beginning of program