fixing/cleaning up codes/dynam files