changed "n" arguemt check to return false rather than throw exception