introduced validations for main arguments