replicates main file error