added check for valid level number