removing useless warns