trying to fix constructor