added second yield statement for consisency