add warning to code