removed mayer code