this is autostory code