made changes to auto code