some optimizations
debug ptx code