remove redundant code from an old prototype