added constructor parameters.