adapt to beginloop with args
adapt to beginloop with args