Code is working for one dataset