set constructor private