created method for creating base entity and is being called when setting stage