Removed unnecessary explicit declaration for next()