removed unnecessary code from populate