remove non-relvant part