fix args indexing