rm populate function