fixed up code for pushing blogs into array