He was walking along the sands _______ he saw a big foot-print in the sand .A. while B. when D. as D. after