modified moc.m it now works