remove unnecessary parts