commented out foreach_reverse code