added @warning, clearer warning msg