added constructor with params.