act committed in violation of law