bug fix: object constructor implementation