check functions args