added run for compile.
slight reordering