updated constructor definition and comment