removed warning unesed variables