adjust check of args