create populate function