remove unused codes for multipule instances