get rd of the large example code, use minimal version instead