repair code move function to libClass