fix constructor public