add optional code to constructor
1.0.1