to constructor