fixing args check