removed old maggie code