minor refactor, added array push