check for correct arguments