protected some code to prevent an error