remove uncessary codes.