assembling files properly