switching order of compilation