new x,y bin function for simstat