made ajax sync