set constructor correctly