change selectall_hashref to selectall_arrayref