changed loop with pushObjeject to pushObjects