add a function for someone just want to get array