Remove unneed elements