added an error when  is not the first argument