link constructor correctly