fixed pushing to array