work properly for testing data