removed duplication when compiling multiple files