correcting cap file