hurried attempt to fix timing in MC code