change constructor parameters order