simplied entity creation code