fixed problem with data size