seting default init value for constructor
modularizing