remove non-function code