minor change to dock code