updated for x_bin and y_bin to lon and lat, and params fix