updated code to initialize in constructors