making file 2.6 compatiable