moved mog to appropriate level in tree and refactored the affects