cleaning elffile code