remove old static code