removing unsused variables