converting to array