replaced warnings