michael's original code