original code