abstract the output and split to array