change empty array to empty hash rewrite and pass spec