revise ajax function [engine][onebyone]