added warning after code review