updating entity construction to use new constuctor