changing the constructor