added dig method