yield() function added