fixed bug of minimum arguments