fixing constructor function