added seed to constructor