added vars to constructor