updated pod complete function