changes to constructors.js