returns object when created