minor modifications to constructor, should get compiled now