updated to a version that doesn't pop when an array didn't push;