fixing constructor case issue