working on MDF script
removing older code