Return path in an array from a star function