minor changes to assembly code to be more transparent