calling pugmode