value of n (-5) is invalid