added ajax collect method