attempted correction of object constructor