modify LAOF.cpp