Arthur packet through the trace formula