removed console.log fro entity factory