some code for the constructor block