added once() and times() function methods