fix reference
fix constructor