fxns to generate entities