a better way to hide warnings