move warning to constructor