rewrote main argument