started testing wtatage sampling function