modified list() to return Array