add default constructor and isCreated attribute