remove uneeeded parts for b2g