fixing warns