remove unnecessary contents