corrected order of compiling