refactored the constructor to not use a default reference to a static member