adds once() method