working on storing entity